GOOGLE_READER_TARGET = $$qtLibraryTarget(googlereaderservice)
GOOGLE_READER_DESTDIR = lib
GOOGLE_READER_INCLUDEPATH = "include"
google_reader_build_lib {
    HEADERS += ./src/googlereaderservice.h \
        ./src/googlereaderenum.h \
        ./src/googlereaderclient.h \
        ./src/replies/googlereaderreply.h \
        ./src/items/googlereaderitem.h \
        ./src/replies/updatetreereply.h \
        ./src/items/parentitem.h \
        ./src/items/rootitem.h \
        ./src/items/tagitem.h \
        ./src/items/feeditem.h \
        ./src/items/storyitem.h \
        ./src/items/everythingtagitem.h \
        ./src/items/starredtagitem.h \
        ./src/replies/unreadcountsreply.h \
        ./src/replies/storylistreply.h \
        ./src/replies/editreply.h \
        ./src/replies/feedsearchresultsreply.h \
        ./src/items/folderitem.h

    SOURCES += ./src/googlereaderservice.cpp \
        ./src/googlereaderenum.cpp \
        ./src/googlereaderclient.cpp \
        ./src/replies/googlereaderreply.cpp \
        ./src/items/googlereaderitem.cpp \
        ./src/replies/updatetreereply.cpp \
        ./src/items/parentitem.cpp \
        ./src/items/rootitem.cpp \
        ./src/items/tagitem.cpp \
        ./src/items/feeditem.cpp \
        ./src/items/storyitem.cpp \
        ./src/items/everythingtagitem.cpp \
        ./src/items/starredtagitem.cpp \
        ./src/replies/unreadcountsreply.cpp \
        ./src/replies/storylistreply.cpp \
        ./src/replies/editreply.cpp \
        ./src/replies/feedsearchresultsreply.cpp \
        ./src/items/folderitem.cpp

    INCLUDEPATH += ./src \
        ./src/replies \
        ./src/items

    CONFIG += create_prl
}else {
    CONFIG += link_prl
    RELPATH = "../plugins/google_reader"
    GOOGLE_READER_LIBFILE_PATH = -L$$quote(\"$$RELPATH/$$GOOGLE_READER_DESTDIR\") -l$$GOOGLE_READER_TARGET
    LIBS+= $$GOOGLE_READER_LIBFILE_PATH
    INCLUDEPATH += $$quote($$RELPATH/$$GOOGLE_READER_INCLUDEPATH)

    RESOURCES += \
        $$RELPATH/google_reader.qrc

    OTHER_FILES += $$RELPATH/images/googlereader.png
}
